package com.fram.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fram.bean.admin.android.category.request.CategoryAndroidRequest;
import com.fram.bean.admin.android.category.response.CategoryAndroidResponse;
import com.fram.bean.api.project.request.CategoryRequest;
import com.fram.bean.api.project.response.CategoryResponse;
import com.fram.entity.DistributorProjectCategory;

public interface DistributorProjectCategoryMapper {

	int deleteByPrimaryKey(Long id);

	int insert(DistributorProjectCategory record);

	int insertSelective(DistributorProjectCategory record);

	DistributorProjectCategory selectByPrimaryKey(@Param("id") Long id);

	int updateByPrimaryKeySelective(DistributorProjectCategory record);

	int updateByPrimaryKey(DistributorProjectCategory record);
	//
	List<CategoryResponse> selectProductCategoryList(CategoryRequest request);
	//	
	CategoryResponse selectById(Long id);
	//后台-下拉分类展示(根据店铺 或 超级)
	List<CategoryResponse> listCategory(@Param("distributorId") Long distributorId);
	
	int deleteByCategory(Long categoryId,Long distributorId);
	
	//android 
	List<CategoryAndroidResponse> listForAndroid(CategoryAndroidRequest request);
}